package com.yoake.cine.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yoake.cine.mapper.MovieCategoryMapper;
import com.yoake.cine.domain.MovieCategory;
import com.yoake.cine.service.IMovieCategoryService;

/**
 * 电影类别管理Service业务层处理
 * 
 * @author yoake
 * @date 2025-03-21
 */
@Service
public class MovieCategoryServiceImpl implements IMovieCategoryService 
{
    @Autowired
    private MovieCategoryMapper movieCategoryMapper;

    /**
     * 查询电影类别管理
     * 
     * @param movieCategoryId 电影类别管理主键
     * @return 电影类别管理
     */
    @Override
    public MovieCategory selectMovieCategoryByMovieCategoryId(String movieCategoryId)
    {
        return movieCategoryMapper.selectMovieCategoryByMovieCategoryId(movieCategoryId);
    }

    /**
     * 查询电影类别管理列表
     * 
     * @param movieCategory 电影类别管理
     * @return 电影类别管理
     */
    @Override
    public List<MovieCategory> selectMovieCategoryList(MovieCategory movieCategory)
    {
        return movieCategoryMapper.selectMovieCategoryList(movieCategory);
    }

    /**
     * 新增电影类别管理
     * 
     * @param movieCategory 电影类别管理
     * @return 结果
     */
    @Override
    public int insertMovieCategory(MovieCategory movieCategory)
    {
        return movieCategoryMapper.insertMovieCategory(movieCategory);
    }

    /**
     * 修改电影类别管理
     * 
     * @param movieCategory 电影类别管理
     * @return 结果
     */
    @Override
    public int updateMovieCategory(MovieCategory movieCategory)
    {
        return movieCategoryMapper.updateMovieCategory(movieCategory);
    }

    /**
     * 批量删除电影类别管理
     * 
     * @param movieCategoryIds 需要删除的电影类别管理主键
     * @return 结果
     */
    @Override
    public int deleteMovieCategoryByMovieCategoryIds(String[] movieCategoryIds)
    {
        return movieCategoryMapper.deleteMovieCategoryByMovieCategoryIds(movieCategoryIds);
    }

    /**
     * 删除电影类别管理信息
     * 
     * @param movieCategoryId 电影类别管理主键
     * @return 结果
     */
    @Override
    public int deleteMovieCategoryByMovieCategoryId(String movieCategoryId)
    {
        return movieCategoryMapper.deleteMovieCategoryByMovieCategoryId(movieCategoryId);
    }
}
